﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac;
using CSharpLogger.Common;

namespace CSharpLogger.Test
{
    public class ContainerBuilderFactoryConfiguration
    {
        public static void Configure()
        {
            var builder = ContainerBuilderFactory.ContainerBuilder;

            builder.RegisterType<FileWrapper>().As<IFileWrapper>().SingleInstance();

            if (ContainerBuilderFactory.Container == null)
                ContainerBuilderFactory.Container = builder.Build();
        }
    }
}
